home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / TBOXCOPY.DMO < prev    next >
Text File  |  1996-07-04  |  3KB  |  55 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   TBOXCOPY.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NB01.INC"
  19. $INCLUDE "DAS-NBT1.INC"
  20. COLOR 7,0
  21. CLS
  22. ? "┌─────────────────────────────────────────────────────────────────────────
  23. ? "│ TBoxCOPY  ( Row?, Col?, Rows?, Cols?, Fpage?, Tpage? )
  24. ? "│ TBoxCOPY2 ( Fpage?, Tpage? )
  25. ? "├─────────────────────────────────────────────────────────────────────────
  26. ? "│ These routines allows you to move data from any valid screen page to any
  27. ? "│ other. Row?, Col?, Rows? and Cols? define both the area to be copied
  28. ? "│ from and to while Fpage? and Tpage? define which pages to be copied From
  29. ? "│ and To respectively.
  30. ? "│ TBoxCOPY2 copies the whole page but will NOT move/copy over character/
  31. ? "│ attribute combinations of 0/0. This allow for masking what data is to
  32. ? "│ be left as-is on the Tpage?.
  33. ? "└─────────────────────────────────────────────────────────────────────────
  34.  
  35. Tprint 25, 52, "Press <ÄANY KEY> to continue.", 15
  36. fAnyKey
  37.  
  38. SCREEN 0,,1,0                           ' Apage = 1
  39. TBoxFILL  1,  1, 25, 80, 0, 0           ' clear page with attr 0 and char 0
  40. TBoxFILL 10, 10, 10, 20, 177, 112       ' print a block of ▒'s
  41.                                         '
  42. SCREEN 0,,2,0                           ' Apage = 2
  43. TBoxFILL 1, 1, 25, 80,  88, 12          ' Fill this page with red X's
  44.                                         '
  45. SCREEN 0,,0,0                           ' Apage = 0 (Normal)
  46. TBoxFILL  1,  1, 25, 80,  65,   1       ' fill page with blue A's
  47. DELAY 1                                 ' pause for effect
  48.                                         '
  49. TBoxCopy2 1, 0                          ' copy Apage 1 to Apage 0
  50. DELAY 1                                 ' more effects
  51. TBoxCopy2 2, 0                          ' copy Apage 2 to Apage 0
  52. DELAY 1                                 ' copy only the BOX from
  53. TBoxCopy 10, 10, 10, 20, 1, 0           '   page 1 to page 0
  54. DELAY 1                                 '
  55. TBoxCopy  1,  1, 25, 80, 1, 0           ' now, copy everything from 1 to 0